package satir.cell;

import satir.card.Card;
import satir.card.Deck;
import satir.player.Player;

/**
 * The Class ActCell.
 * 
 * @version 2.0 March 2012
 * @author Antony Chan
 * 
 */
public class ActCell extends DrawCardCell {
	
	/**
	 * Instantiates a new act cell.
	 *
	 * @param width the act cell width
	 * @param height the act cell height
	 * @param borderHorizonal the border horizonal
	 * @param borderVertical the border vertical
	 * @param deck the deck object
	 */
	public ActCell(int width, int height, char borderHorizonal,
			char borderVertical, Deck deck) {
		super(width, height, borderHorizonal, borderVertical, "Act", deck);
		// TODO Auto-generated constructor stub
	}

	/* (non-Javadoc)
	 * @see stair.cell.Cell#cellAction(stair.player.Player)
	 */
	/**
	 * Trigger act cell action.
	 *
	 * @param target the object of player
	 */
	public void cellAction(Player target) {
		Card actCard = deck.drawCard(); // Pop one act card from deck
		actCard.activateCard(target); // Display act card information
	}
	
}